import request from '@/utils/request'

// 查询花名册列表
export function listEmpl_rosters(query) {
  return request({
    url: '/ehr/empl_rosters/list',
    method: 'get',
    params: query
  })
}

// 查询花名册详细
export function getEmpl_rosters(partyId) {
  return request({
    url: '/ehr/empl_rosters/' + partyId,
    method: 'get'
  })
}

// 新增花名册
export function addEmpl_rosters(data) {
  return request({
    url: '/ehr/empl_rosters',
    method: 'post',
    data: data
  })
}

// 修改花名册
export function updateEmpl_rosters(data) {
  return request({
    url: '/ehr/empl_rosters',
    method: 'put',
    data: data
  })
}

// 删除花名册
export function delEmpl_rosters(partyId) {
  return request({
    url: '/ehr/empl_rosters/' + partyId,
    method: 'delete'
  })
}

